<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Symbol</title>
</head>

<body>
    <script>
        //创建Symbol
        let s = Symbol();
        console.log(s, typeof s);
        let s2 = Symbol('尚硅谷');
        let s3 = Symbol('尚硅谷');
        let s4 = Symbol.for('尚硅谷')
        let s5 = Symbol.for('尚硅谷')
        console.log(s2 === s3)
        console.log(s4, typeof s4);
        console.log(s4 == s5)


        //不能与其他数据进行运算
       


    </script>

</body>

</html>